package cn.xiehang.SoundSight;

import java.util.List;

public class Article {
    int id;
    String title;
    String content;
    String imageUrl;
    String audioUrl;
    boolean haveAudio;
    User author;
    String CreateTime;
    int thumbsUpCount;
    int collectCount;
    List<Comment> comments;

    public Article(int id, String title, String content, String imageUrl, String audioUrl, User author, String createTime, int thumbsUpCount, int collectCount, List<Comment> comments) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.imageUrl = imageUrl;
        this.audioUrl = audioUrl;
        this.author = author;
        CreateTime = createTime;
        this.thumbsUpCount = thumbsUpCount;
        this.collectCount = collectCount;
        this.comments = comments;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public String getImageUrl() {
        return imageUrl;
    }
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
    public String getAudioUrl() {
        return audioUrl;
    }
    public void setAudioUrl(String audioUrl) {
        this.audioUrl = audioUrl;
    }
    public boolean isHaveAudio() {
        return haveAudio;
    }
    public void setHaveAudio(boolean haveAudio) {
        this.haveAudio = haveAudio;
    }
    public User getAuthor() {
        return author;
    }
    public void setAuthor(User author) {
        this.author = author;
    }
    public String getCreateTime() {
        return CreateTime;
    }
    public void setCreateTime(String createTime) {
        CreateTime = createTime;
    }
    public int getThumbsUpCount() {
        return thumbsUpCount;
    }
    public void setThumbsUpCount(int thumbsUpCount) {
        this.thumbsUpCount = thumbsUpCount;
    }
    public int getCollectCount() {
        return collectCount;
    }
    public void setCollectCount(int collectCount) {
        this.collectCount = collectCount;
    }
    public List<Comment> getComments() {
        return comments;
    }
    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }
    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", audioUrl='" + audioUrl + '\'' +
                ", haveAudio=" + haveAudio +
                ", author=" + author +
                ", CreateTime='" + CreateTime + '\'' +
                ", thumbsUpCount=" + thumbsUpCount +
                ", collectCount=" + collectCount +
                ", comments=" + comments +
                '}';
    }

}
